home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17670 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: news.ucalgary.ca!news
  2. From: Charlotte Moller <cmoller@dbcorp.ab.ca>
  3. Newsgroups: comp.lang.c++
  4. Subject: Disappearing Wait Cursor
  5. Date: Tue, 16 Apr 1996 19:02:00 -0600
  6. Organization: The University of Calgary
  7. Message-ID: <31744308.6222@dbcorp.ab.ca>
  8. NNTP-Posting-Host: @sphomer2.dbcorp.ab.ca
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (Win95; I)
  13.  
  14. Disappearing wait cursor (hour-glass)
  15. -------------------------------------
  16.  
  17. Has anyone ever come across this problem when developing Windows 
  18. programs which access Oracle databases?
  19.  
  20. When I have to perform an activity that I know is going to take a little 
  21. while, I've being setting the wait cursor (hourglass) via the windows 
  22. call hcursor = SetCursor(LoadCursor(NULL, IDC_WAIT)), and then restoring 
  23. the cursor after the activity via SetCursor(hcursor).  This appears to 
  24. work fine, except when I am  accessing the Orracle database via SQL*Net. 
  25. Somewhere during the activity the wait cursor disappears!  This happens 
  26. with any time consuming database access.  With a click happy user, the 
  27. results are disastrous, usually ending in a GPF.  I'm currently 
  28. programming in Borland C++ 3.1 / OWL 1.0 using the CommonBase library 
  29. (by ImageSoft) for database access, but I've seen this problem with 
  30. other development environments (i.e. ObjectView, calls from a C++ 
  31. program to R&R ReportWriter).  My best guess is SQL*Net does something 
  32. nasty with the cursor, but a solution has thus far eluded me.
  33.  
  34. Thanks :),
  35. Charlotte
  36.